package cn.wegoteam.shop.inter;

import javax.servlet.http.HttpServletRequest;
import cn.wegoteam.shop.po.Order;
import cn.wegoteam.shop.po.User;

public interface PayServiceInter extends BaseServiceInter<Order> {

	/**
	 * 支付
	 * @param order
	 * @param ids
	 * @param user
	 * @param request
	 * @return
	 */
	public void pay(Order order, User user,
			HttpServletRequest request);

	/**
	 * 更新订单状态
	 * @param request
	 * @param out_trade_no
	 * @param trade_no
	 * @param trade_status
	 * @param buyer_email
	 * @param tasks
	 * @return
	 * @throws Exception
	 */
	public boolean paySuccess(HttpServletRequest request, String out_trade_no,
			String trade_no,String buyer_email);
}
